package com.four.shop.dao;
/**
 * @Author:wsy
 * @Date: 2021/12/9/15:35
 */
import com.four.shop.entity.Observer;
import com.four.shop.vo.ObserverVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: luojie
 * @Date: 2021/12/9/15:39
 * @Description: 商品评论表
 */
public interface ObserverDao {

    /**
     * fetch data by rule id
     *
     * 商品评论列表
     *
     * 商品评论列表模糊
     *
     * @param vo
     * @return
     */
    List<Observer> observerList(@Param("vo") ObserverVo vo);

    /**
     * fetch data by rule id
     *
     * id逻辑删除
     *
     * @param id
     * @return
     */
    public void deleteById(Long id);


    /**
     * fetch data by rule id
     * @param observer
     *  @return
     */
    void add(Observer observer);

    /**
     * fetch data by rule id
     *
     * 回显
     *
     * @param id
     * @return
     */
    Observer findById(Long id);


    /**
     * fetch data by rule id
     *
     * 根据 id回复
     *
     * @param id
     * @param criContent
     * @return
     */
    void addCriContentById(@Param("id") Long id, @Param("criContent") String criContent);
}
